package com.ruoyi.mark.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 维修任务表功能对象 cf_maintain
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
public class CfMaintain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 维修单号 */
    @Excel(name = "维修单号")
    private String number;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Long carId;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 维修方式(上门取车，到店维修，取车地址（上门）) */
    @Excel(name = "维修方式(上门取车，到店维修，取车地址", readConverterExp = "上=门")
    private Long type;

    /** 取车地址 */
    @Excel(name = "取车地址")
    private String address;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date subscribeTime;

    /** 提交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 到场日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到场日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date presentTime;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 维修状态(已取消、进行中、已完成) */
    @Excel(name = "维修状态(已取消、进行中、已完成)")
    private Long maintainState;

    /** 状态(未到场、进行中、已完成) */
    @Excel(name = "状态(未到场、进行中、已完成)")
    private Long state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNumber(String number) 
    {
        this.number = number;
    }

    public String getNumber() 
    {
        return number;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setSubscribeTime(Date subscribeTime) 
    {
        this.subscribeTime = subscribeTime;
    }

    public Date getSubscribeTime() 
    {
        return subscribeTime;
    }
    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }
    public void setPresentTime(Date presentTime) 
    {
        this.presentTime = presentTime;
    }

    public Date getPresentTime() 
    {
        return presentTime;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setMaintainState(Long maintainState) 
    {
        this.maintainState = maintainState;
    }

    public Long getMaintainState() 
    {
        return maintainState;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("number", getNumber())
            .append("carId", getCarId())
            .append("phone", getPhone())
            .append("type", getType())
            .append("address", getAddress())
            .append("subscribeTime", getSubscribeTime())
            .append("submitTime", getSubmitTime())
            .append("presentTime", getPresentTime())
            .append("orderId", getOrderId())
            .append("maintainState", getMaintainState())
            .append("state", getState())
            .toString();
    }
}
